import {
	createSSRApp
} from "vue";
import App from "./App.vue";

// 导入uni-ui组件
import uniPopup from '@dcloudio/uni-ui/lib/uni-popup/uni-popup.vue';
import uniDatetimePicker from '@dcloudio/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue';

export function createApp() {
	const app = createSSRApp(App);
	
	// 注册组件
	app.component('uni-popup', uniPopup);
	app.component('uni-datetime-picker', uniDatetimePicker);
	
	return {
		app,
	};
}
